package com.gnerv.pabu.basic.core.dto;

import com.gnerv.pabu.basic.core.entity.Notice;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 基础平台-通知公告表(ManageNotice)实体类
 *
 * @author makejava
 * @since 2020-03-04 23:01:53
 */
@Data
@NoArgsConstructor
public class NoticeSaveDTO {

    private String ukId;
    private String title;
    private String content;
    private Integer status;

    public Notice convert() {
        Notice notice = new Notice();
        BeanUtils.copyProperties(this, notice);
        return notice;
    }
}